home *** CD-ROM | disk | FTP | other *** search
/ Computer Select (Limited Edition) / Computer Select.iso / pcc / v04n12 / batch2.exe / HIDETHEM.BAT < prev    next >
Encoding:
DOS Batch File  |  1991-10-10  |  667 b   |  35 lines

  1. @ECHO OFF
  2. REM This is HIDETHEM.BAT
  3. REM ****** DOS 5.0 TEST FOLLOWS ******
  4. IF EXIST VERSION.COM GOTO START
  5. ECHO This needs VERSION.COM to work
  6. GOTO END
  7. :START
  8. VERSION
  9. IF ERRORLEVEL 5 GOTO OKAY
  10. ECHO This needs DOS 5.0 or later 
  11. ECHO to work properly.
  12. GOTO END
  13. :OKAY
  14. REM ****** DOS 5.0 TEST ENDS ******
  15. IF %1!==! GOTO OOPS
  16. IF %1==H GOTO HIDE
  17. IF %1==h GOTO HIDE
  18. IF %1==U GOTO UNHIDE
  19. IF %1==u GOTO UNHIDE
  20. GOTO OOPS
  21. :HIDE
  22. ATTRIB +H *.*
  23. ECHO All files hidden
  24. GOTO END
  25. :UNHIDE
  26. ATTRIB -H *.*
  27. ECHO All files UNhidden
  28. GOTO END
  29. :OOPS
  30. ECHO Enter %0 H to hide all 
  31. ECHO files in the current
  32. ECHO directory, or %0 U to 
  33. ECHO "unhide" them all
  34. :END
  35.